//
//  GTLanguage.swift
//  GitOSC-Swift
//
//  Created by 李萍 on 15/12/31.
//  Copyright © 2015年 李萍. All rights reserved.
//

import Foundation
import SwiftyJSON

class GTLanguage {

    var createdAt: String
    var detail: String
    var languageID: Int
    var ident: String
    
    var name: String
    var order: Int
    var parentId: Int
    var projectsCount: Int
    var updatedAt: String
    
    init(json:SwiftyJSON.JSON) {
        self.createdAt = json["created_at"].stringValue
        self.detail = json["detail"].stringValue
        self.languageID = json["id"].intValue
        self.ident = json["ident"].stringValue
        self.name = json["name"].stringValue
        self.order = json["order"].intValue
        self.parentId = json["parent_id"].intValue
        self.projectsCount = json["projects_count"].intValue
        self.updatedAt = json["updated_at"].stringValue
    }
}